<!DOCTYPE html>
<html lang="zh-CN" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>快速上手 | PureChat</title>
    <meta name="description" content="PureChat文档">
    <meta name="generator" content="VitePress v1.0.1">
    <link rel="preload stylesheet" href="/pure-docs/assets/style.DmBUOYQZ.css" as="style">
    
    <script type="module" src="/pure-docs/assets/app.Mu2KSxVJ.js"></script>
    <link rel="preload" href="/pure-docs/assets/inter-roman-latin.Bu8hRsVA.woff2" as="font" type="font/woff2" crossorigin="">
    <link rel="modulepreload" href="/pure-docs/assets/chunks/framework.BspCw6qa.js">
    <link rel="modulepreload" href="/pure-docs/assets/chunks/theme.CMfNfohP.js">
    <link rel="modulepreload" href="/pure-docs/assets/guide_start.md.CvL9OdcG.lean.js">
    <link rel="icon" href="./favicon.ico">
    <script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
    <script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
  </head>
  <body>
    <div id="app"><div class="Layout" data-v-96c03a5e><!--[--><!--]--><!--[--><span tabindex="-1" data-v-5875a424></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-5875a424> Skip to content </a><!--]--><!----><header class="VPNav" data-v-96c03a5e data-v-7f015757><div class="VPNavBar has-sidebar top" data-v-7f015757 data-v-6693ab7d><div class="wrapper" data-v-6693ab7d><div class="container" data-v-6693ab7d><div class="title" data-v-6693ab7d><div class="VPNavBarTitle has-sidebar" data-v-6693ab7d data-v-cf9091aa><a class="title" href="/pure-docs/" data-v-cf9091aa><!--[--><!--]--><!--[--><img class="VPImage logo" src="/pure-docs/favicon.png" alt data-v-2e38b343><!--]--><span data-v-cf9091aa>PureChat</span><!--[--><!--]--></a></div></div><div class="content" data-v-6693ab7d><div class="content-body" data-v-6693ab7d><!--[--><!--]--><div class="VPNavBarSearch search" data-v-6693ab7d><!--[--><!----><div id="local-search"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><span class="vp-icon DocSearch-Search-Icon"></span><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"><kbd class="DocSearch-Button-Key"></kbd><kbd class="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-6693ab7d data-v-333c5432><span id="main-nav-aria-label" class="visually-hidden" data-v-333c5432>Main Navigation</span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/pure-docs/guide/" tabindex="0" data-v-333c5432 data-v-bb76907a><!--[--><span data-v-bb76907a>介绍</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/pure-docs/other/FAQ.html" tabindex="0" data-v-333c5432 data-v-bb76907a><!--[--><span data-v-bb76907a>常见问题</span><!--]--></a><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-333c5432 data-v-bf7ba31f><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-bf7ba31f><span class="text" data-v-bf7ba31f><!----><span data-v-bf7ba31f>链接</span><span class="vpi-chevron-down text-icon" data-v-bf7ba31f></span></span></button><div class="menu" data-v-bf7ba31f><div class="VPMenu" data-v-bf7ba31f data-v-8201c52f><div class="items" data-v-8201c52f><!--[--><!--[--><div class="VPMenuLink" data-v-8201c52f data-v-80c5846f><a class="VPLink link vp-external-link-icon" href="https://pureadmin.cn" target="_blank" rel="noreferrer" data-v-80c5846f><!--[-->在线预览<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-8201c52f data-v-80c5846f><a class="VPLink link vp-external-link-icon" href="https://gitee.com/H260788/PureChat" target="_blank" rel="noreferrer" data-v-80c5846f><!--[-->gitee仓库<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-8201c52f data-v-80c5846f><a class="VPLink link vp-external-link-icon" href="https://github.com/Hyk260/PureChat" target="_blank" rel="noreferrer" data-v-80c5846f><!--[-->github仓库<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-6693ab7d data-v-2eb87cf3><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-2eb87cf3 data-v-d37f5a4c data-v-68d4f6b8><span class="check" data-v-68d4f6b8><span class="icon" data-v-68d4f6b8><!--[--><span class="vpi-sun sun" data-v-d37f5a4c></span><span class="vpi-moon moon" data-v-d37f5a4c></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-6693ab7d data-v-f019df0e data-v-2d069a0b><!--[--><a class="VPSocialLink no-icon" href="https://github.com/Hyk260/PureChat" aria-label="github" target="_blank" rel="noopener" data-v-2d069a0b data-v-8d4faf49><span class="vpi-social-github" /></a><a class="VPSocialLink no-icon" href="https://jq.qq.com/?_wv=1027&amp;k=Cd4Ihd2J" aria-label target="_blank" rel="noopener" data-v-2d069a0b data-v-8d4faf49>
<svg height="2500" viewBox="-1.94 0 124.879 145.085" width="2101" xmlns="http://www.w3.org/2000/svg">
	<path
		d="m60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0"
		fill="#faab07"
	/>
	<path
		d="m60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01 0-27.634-13.044-55.401-45.124-55.402-32.08.001-45.125 27.769-45.125 55.401 0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021"
	/>
	<path
		d="m49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773"
		fill="#fff"
	/>
	<path
		d="m87.952 49.725c-1.162-2.575-12.875-5.445-27.374-5.445h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 0 0 -.085.367c0 .186.063.352.16.496.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 0 0 .16-.498.856.856 0 0 0 -.085-.365"
		fill="#faab07"
	/>
	<path
		d="m54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362"
	/>
	<path
		d="m60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518"
		fill="#fff"
	/>
	<g fill="#eb1923">
		<path d="m32.102 81.235v21.693s9.937 2.004 19.893.616v-20.009c-6.307-.357-13.109-1.152-19.893-2.3" />
		<path
			d="m105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275l-6.474 16.158c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0"
		/>
	</g>
</svg></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-6693ab7d data-v-1d76fac6 data-v-bf7ba31f><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-bf7ba31f><span class="vpi-more-horizontal icon" data-v-bf7ba31f></span></button><div class="menu" data-v-bf7ba31f><div class="VPMenu" data-v-bf7ba31f data-v-8201c52f><!----><!--[--><!--[--><!----><div class="group" data-v-1d76fac6><div class="item appearance" data-v-1d76fac6><p class="label" data-v-1d76fac6>Appearance</p><div class="appearance-action" data-v-1d76fac6><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-1d76fac6 data-v-d37f5a4c data-v-68d4f6b8><span class="check" data-v-68d4f6b8><span class="icon" data-v-68d4f6b8><!--[--><span class="vpi-sun sun" data-v-d37f5a4c></span><span class="vpi-moon moon" data-v-d37f5a4c></span><!--]--></span></span></button></div></div></div><div class="group" data-v-1d76fac6><div class="item social-links" data-v-1d76fac6><div class="VPSocialLinks social-links-list" data-v-1d76fac6 data-v-2d069a0b><!--[--><a class="VPSocialLink no-icon" href="https://github.com/Hyk260/PureChat" aria-label="github" target="_blank" rel="noopener" data-v-2d069a0b data-v-8d4faf49><span class="vpi-social-github" /></a><a class="VPSocialLink no-icon" href="https://jq.qq.com/?_wv=1027&amp;k=Cd4Ihd2J" aria-label target="_blank" rel="noopener" data-v-2d069a0b data-v-8d4faf49>
<svg height="2500" viewBox="-1.94 0 124.879 145.085" width="2101" xmlns="http://www.w3.org/2000/svg">
	<path
		d="m60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0"
		fill="#faab07"
	/>
	<path
		d="m60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01 0-27.634-13.044-55.401-45.124-55.402-32.08.001-45.125 27.769-45.125 55.401 0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021"
	/>
	<path
		d="m49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773"
		fill="#fff"
	/>
	<path
		d="m87.952 49.725c-1.162-2.575-12.875-5.445-27.374-5.445h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 0 0 -.085.367c0 .186.063.352.16.496.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 0 0 .16-.498.856.856 0 0 0 -.085-.365"
		fill="#faab07"
	/>
	<path
		d="m54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362"
	/>
	<path
		d="m60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518"
		fill="#fff"
	/>
	<g fill="#eb1923">
		<path d="m32.102 81.235v21.693s9.937 2.004 19.893.616v-20.009c-6.307-.357-13.109-1.152-19.893-2.3" />
		<path
			d="m105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275l-6.474 16.158c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0"
		/>
	</g>
</svg></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-6693ab7d data-v-8c167953><span class="container" data-v-8c167953><span class="top" data-v-8c167953></span><span class="middle" data-v-8c167953></span><span class="bottom" data-v-8c167953></span></span></button></div></div></div></div><div class="divider" data-v-6693ab7d><div class="divider-line" data-v-6693ab7d></div></div></div><!----></header><div class="VPLocalNav has-sidebar empty" data-v-96c03a5e data-v-a40ccd04><div class="container" data-v-a40ccd04><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-a40ccd04><span class="vpi-align-left menu-icon" data-v-a40ccd04></span><span class="menu-text" data-v-a40ccd04>Menu</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-a40ccd04 data-v-d5f975b2><button data-v-d5f975b2>Return to top</button><!----></div></div></div><aside class="VPSidebar" data-v-96c03a5e data-v-c1b5a1d7><div class="curtain" data-v-c1b5a1d7></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-c1b5a1d7><span class="visually-hidden" id="sidebar-aria-label" data-v-c1b5a1d7> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="group" data-v-c1b5a1d7><section class="VPSidebarItem level-0 has-active" data-v-c1b5a1d7 data-v-d5e8bf81><div class="item" role="button" tabindex="0" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><h2 class="text" data-v-d5e8bf81>前言</h2><!----></div><div class="items" data-v-d5e8bf81><!--[--><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/guide/" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>介绍</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/guide/start.html" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>快速上手</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/guide/config.html" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>项目配置</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/guide/directory.html" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>目录结构</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/guide/commitlint.html" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>提交规范</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="group" data-v-c1b5a1d7><section class="VPSidebarItem level-0" data-v-c1b5a1d7 data-v-d5e8bf81><div class="item" role="button" tabindex="0" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><h2 class="text" data-v-d5e8bf81>其他</h2><!----></div><div class="items" data-v-d5e8bf81><!--[--><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/other/FAQ.html" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>常见问题</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/other/logs.html" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>更新日志</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-d5e8bf81 data-v-d5e8bf81><div class="item" data-v-d5e8bf81><div class="indicator" data-v-d5e8bf81></div><a class="VPLink link link" href="/pure-docs/other/model.html" data-v-d5e8bf81><!--[--><p class="text" data-v-d5e8bf81>大语言模型指南</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-96c03a5e data-v-ee39df6c><div class="VPDoc has-sidebar has-aside" data-v-ee39df6c data-v-1f6b80d1><!--[--><!--]--><div class="container" data-v-1f6b80d1><div class="aside" data-v-1f6b80d1><div class="aside-curtain" data-v-1f6b80d1></div><div class="aside-container" data-v-1f6b80d1><div class="aside-content" data-v-1f6b80d1><div class="VPDocAside" data-v-1f6b80d1 data-v-a65f5c4c><!--[--><!--]--><!--[--><!--]--><div class="VPDocAsideOutline" role="navigation" data-v-a65f5c4c data-v-7ad13055><div class="content" data-v-7ad13055><div class="outline-marker" data-v-7ad13055></div><div class="outline-title" role="heading" aria-level="2" data-v-7ad13055>On this page</div><nav aria-labelledby="doc-outline-aria-label" data-v-7ad13055><span class="visually-hidden" id="doc-outline-aria-label" data-v-7ad13055> Table of Contents for current page </span><ul class="VPDocOutlineItem root" data-v-7ad13055 data-v-0a7f5098><!--[--><!--]--></ul></nav></div></div><!--[--><!--]--><div class="spacer" data-v-a65f5c4c></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-1f6b80d1><div class="content-container" data-v-1f6b80d1><!--[--><!--]--><main class="main" data-v-1f6b80d1><div style="position:relative;" class="vp-doc _pure-docs_guide_start" data-v-1f6b80d1><div><h1 id="快速上手" tabindex="-1">快速上手 <a class="header-anchor" href="#快速上手" aria-label="Permalink to &quot;快速上手&quot;">​</a></h1><h2 id="环境准备" tabindex="-1">环境准备 <a class="header-anchor" href="#环境准备" aria-label="Permalink to &quot;环境准备&quot;">​</a></h2><p>确保你的环境满足以下要求</p><ul><li><strong>git</strong>: 你需要git来克隆和管理项目版本 <a href="https://git-scm.com/" target="_blank" rel="noreferrer">安装地址</a></li><li><strong>nodejs</strong>: &gt;=16 或更高 <a href="https://nodejs.cn/" target="_blank" rel="noreferrer">安装地址</a></li></ul><h2 id="拉取代码" tabindex="-1">拉取代码 <a class="header-anchor" href="#拉取代码" aria-label="Permalink to &quot;拉取代码&quot;">​</a></h2><div class="vp-code-group vp-adaptive-theme"><div class="tabs"><input type="radio" name="group--GrlK" id="tab-amtuCP7" checked="checked"><label for="tab-amtuCP7">GitHub</label><input type="radio" name="group--GrlK" id="tab-z4jlstj"><label for="tab-z4jlstj">gitee</label></div><div class="blocks"><div class="language-bash vp-adaptive-theme active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://github.com/Hyk260/PureChat.git</span></span></code></pre></div><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">git</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> clone</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> https://gitee.com/H260788/PureChat.git</span></span></code></pre></div></div></div><h4 id="安装依赖" tabindex="-1">安装依赖 <a class="header-anchor" href="#安装依赖" aria-label="Permalink to &quot;安装依赖&quot;">​</a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span>yarn install</span></span></code></pre></div><h4 id="启动项目" tabindex="-1">启动项目 <a class="header-anchor" href="#启动项目" aria-label="Permalink to &quot;启动项目&quot;">​</a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span>yarn serve</span></span></code></pre></div><h4 id="打包" tabindex="-1">打包 <a class="header-anchor" href="#打包" aria-label="Permalink to &quot;打包&quot;">​</a></h4><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span>yarn build</span></span></code></pre></div><div class="warning custom-block"><p class="custom-block-title">注意</p><p>最新版本的代码以 github 为准。</p></div><div class="warning custom-block"><p class="custom-block-title">本地开发需注意</p><p>本项目由 <a href="https://node-admin.cn" target="_blank" rel="noreferrer">node-admin</a> 提供 API 暂时因密钥安全后端源码暂时不公开 测试可以使用线上地址. 本地启动需将后端地址切换成线上地址 baseURL: &quot;<a href="https://node-admin.cn/" target="_blank" rel="noreferrer">https://node-admin.cn/</a>&quot; 暂时因密钥安全后端源码暂时不公开 测试使用线上地址 <a href="https://gitee.com/H260788/PureChat/blob/master/src/utils/http/index.js#L10" target="_blank" rel="noreferrer">点我查看路径</a></p></div><h2 id="包管理工具" tabindex="-1">包管理工具 <a class="header-anchor" href="#包管理工具" aria-label="Permalink to &quot;包管理工具&quot;">​</a></h2><div class="vp-code-group vp-adaptive-theme"><div class="tabs"><input type="radio" name="group-CRQ3T" id="tab-GFZ9ywu" checked="checked"><label for="tab-GFZ9ywu">npm</label><input type="radio" name="group-CRQ3T" id="tab-hbViJGv"><label for="tab-hbViJGv">cnpm</label><input type="radio" name="group-CRQ3T" id="tab-y8y6e9D"><label for="tab-y8y6e9D">yarn</label><input type="radio" name="group-CRQ3T" id="tab-xPaFH4Z"><label for="tab-xPaFH4Z">pnpm</label></div><div class="blocks"><div class="language-bash vp-adaptive-theme active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">npm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> i</span></span></code></pre></div><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">cnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> i</span></span></code></pre></div><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">yarn</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> i</span></span></code></pre></div><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">pnpm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> i</span></span></code></pre></div></div></div><h2 id="svg-图标使用" tabindex="-1">SVG 图标使用 <a class="header-anchor" href="#svg-图标使用" aria-label="Permalink to &quot;SVG 图标使用&quot;">​</a></h2><p>将 svg 图标文件放在 <code>src/icons/svg</code> 目录下</p><p>在项目中直接使用 <code>&lt;svg-icon iconClass=&quot;图标文件命名&quot; /&gt;</code> 即可</p></div></div></main><footer class="VPDocFooter" data-v-1f6b80d1 data-v-8b65c622><!--[--><!--]--><div class="edit-info" data-v-8b65c622><!----><div class="last-updated" data-v-8b65c622><p class="VPLastUpdated" data-v-8b65c622 data-v-460a4364>上次更新: <time datetime="2024-04-11T05:21:36.000Z" data-v-460a4364></time></p></div></div><nav class="prev-next" data-v-8b65c622><div class="pager" data-v-8b65c622><a class="VPLink link pager-link prev" href="/pure-docs/guide/" data-v-8b65c622><!--[--><span class="desc" data-v-8b65c622>Previous page</span><span class="title" data-v-8b65c622>介绍</span><!--]--></a></div><div class="pager" data-v-8b65c622><a class="VPLink link pager-link next" href="/pure-docs/guide/config.html" data-v-8b65c622><!--[--><span class="desc" data-v-8b65c622>Next page</span><span class="title" data-v-8b65c622>项目配置</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-96c03a5e data-v-87fa390a><div class="container" data-v-87fa390a><p class="message" data-v-87fa390a>Released under the MIT License.</p><p class="copyright" data-v-87fa390a>Copyright (c) 2023 yongkang</p></div></footer><!--[--><!--]--></div></div>
    <script>window.__VP_HASH_MAP__=JSON.parse("{\"index.md\":\"B3krJKNX\",\"guide_commitlint.md\":\"CBfZ1Xp9\",\"other_recommendation.md\":\"0ZZpA-fR\",\"other_logs.md\":\"Bu8AT9oR\",\"guide_index.md\":\"DZGcAGj6\",\"other_faq.md\":\"COF1zkWH\",\"guide_directory.md\":\"Dh3UjqUR\",\"other_model.md\":\"BKoW6Hzp\",\"guide_start.md\":\"CvL9OdcG\",\"guide_config.md\":\"DFpt66PU\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"PureChat\",\"description\":\"PureChat文档\",\"base\":\"/pure-docs/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"lastUpdated\":{\"text\":\"上次更新\",\"formatOptions\":{\"dateStyle\":\"full\",\"timeStyle\":\"medium\"}},\"ignoreDeadLinks\":[{},{},{}],\"logo\":\"/favicon.png\",\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/Hyk260/PureChat\"},{\"icon\":{\"svg\":\"\\n<svg height=\\\"2500\\\" viewBox=\\\"-1.94 0 124.879 145.085\\\" width=\\\"2101\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\\t<path\\n\\t\\td=\\\"m60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0\\\"\\n\\t\\tfill=\\\"#faab07\\\"\\n\\t/>\\n\\t<path\\n\\t\\td=\\\"m60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01 0-27.634-13.044-55.401-45.124-55.402-32.08.001-45.125 27.769-45.125 55.401 0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021\\\"\\n\\t/>\\n\\t<path\\n\\t\\td=\\\"m49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773\\\"\\n\\t\\tfill=\\\"#fff\\\"\\n\\t/>\\n\\t<path\\n\\t\\td=\\\"m87.952 49.725c-1.162-2.575-12.875-5.445-27.374-5.445h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 0 0 -.085.367c0 .186.063.352.16.496.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 0 0 .16-.498.856.856 0 0 0 -.085-.365\\\"\\n\\t\\tfill=\\\"#faab07\\\"\\n\\t/>\\n\\t<path\\n\\t\\td=\\\"m54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362\\\"\\n\\t/>\\n\\t<path\\n\\t\\td=\\\"m60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518\\\"\\n\\t\\tfill=\\\"#fff\\\"\\n\\t/>\\n\\t<g fill=\\\"#eb1923\\\">\\n\\t\\t<path d=\\\"m32.102 81.235v21.693s9.937 2.004 19.893.616v-20.009c-6.307-.357-13.109-1.152-19.893-2.3\\\" />\\n\\t\\t<path\\n\\t\\t\\td=\\\"m105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275l-6.474 16.158c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0\\\"\\n\\t\\t/>\\n\\t</g>\\n</svg>\"},\"link\":\"https://jq.qq.com/?_wv=1027&k=Cd4Ihd2J\"}],\"nav\":[{\"text\":\"介绍\",\"link\":\"/guide/\"},{\"text\":\"常见问题\",\"link\":\"/other/FAQ\"},{\"text\":\"链接\",\"items\":[{\"text\":\"在线预览\",\"link\":\"https://pureadmin.cn\"},{\"text\":\"gitee仓库\",\"link\":\"https://gitee.com/H260788/PureChat\"},{\"text\":\"github仓库\",\"link\":\"https://github.com/Hyk260/PureChat\"}]}],\"sidebar\":[{\"text\":\"前言\",\"items\":[{\"text\":\"介绍\",\"link\":\"/guide/\"},{\"text\":\"快速上手\",\"link\":\"/guide/start\"},{\"text\":\"项目配置\",\"link\":\"/guide/config\"},{\"text\":\"目录结构\",\"link\":\"/guide/directory\"},{\"text\":\"提交规范\",\"link\":\"/guide/commitlint\"}]},{\"text\":\"其他\",\"items\":[{\"text\":\"常见问题\",\"link\":\"/other/FAQ\"},{\"text\":\"更新日志\",\"link\":\"/other/logs\"},{\"text\":\"大语言模型指南\",\"link\":\"/other/model\"}]}],\"footer\":{\"message\":\"Released under the MIT License.\",\"copyright\":\"Copyright (c) 2023 yongkang\"},\"search\":{\"provider\":\"local\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
    
  </body>
</html>